<?php
class vregistration extends view {
        var $scripts = array("jquery-1.9.1.min.js", "jquery.validate.js", "jquery-ui-1.9.2.js", "registration.js");
		var $title = "Registracia";
public function main(){
if ('organizatora'==$this->data['kto']){ $kto='organizátora';}
echo '<h2>Vytvorenie '.$this->data['kto'].' :</h2>';

?>
			<form action="<?php echo "/registracia/".$this->data['kto']; ?>" method="post" id ="createuser">
			   <table>                                                                              
			   	  <tr>
					<td><label for="menocreate">Meno: </label></td>
					<td><input type="text" name="menocreate" id="menocreate" 
							 value="<?php if (isset($this->data['menocreate'])) echo $this->data['menocreate'] ?>"/></td>
				  </tr>
				  <tr>
					<td><label for="priezviskocreate">Priezvisko: </label></td>
					<td><input type="text" name="priezviskocreate" id="priezviskocreate" 
							 value="<?php if (isset($this->data['priezviskocreate'])) echo $this->data['priezviskocreate'] ?>"/></td>
				  </tr>
				  <tr>
					<td><label for="heslocreate">Heslo: </label></td>
					<td><input type="password" name="heslocreate" id="heslocreate"  /></td>
				  </tr>
				  <tr>
					<td><label for="zheslocreate">Zapakuj heslo: </label></td>
					<td><input type="password" name="zheslocreate" id="zheslocreate"  /></td>
				  </tr>
				  <tr>
					<td>
					  <input type="submit" name="vytvoruser" value="Vytvor" />
					</td>
				  </tr>
			   </table>
			</form>
<?php if (isset($this->data['info'])){
					echo "<br /><pc class='red'><b>".$this->data['info']."</b><p/>";
		        }	
			
	}
	
}
?>